import { Application } from 'egg';

export default (app: Application) => {
  const { controller, router } = app;

  /* router.redirect('/', '/news');
  router.get('/news', controller.news.list);
  router.get('/news/item/:id', controller.news.detail);
  router.get('/news/user/:id', controller.news.user); */
  router.post('/pages/create', controller.pages.create);
  router.post('/lists/start', controller.lists.start);
  router.post('/details/start', controller.details.start);
};
